<!-- 继承主页导航头 -->
<extend  name="Index/index" />
<block name="css1">
    <link rel="stylesheet" href="__ROOT__/public/mycss/user_info.css">

</block>

<block name="main">
<div class="container-fluid">
<!-- 用户信息start-->
    <div class="mt80"></div>
    <div class="row" id="user_box">
    <!-- 用户头像  start-->
        <div  class="col-md-4 w-l">
            <div class="img_box mt20" >
            <empty name="_SESSION['user']['headimg_id']">
                <!-- 图像为空时,显示默认头像 -->
                <a href="<{:U('User/account_info')}>">
                <img src="__ROOT__/public/imgs/head_img.jpg" class="headimg center">
                </a>
            <else />
            <a href="<{:U('User/account_info')}>">
            <img src="__ROOT__/Uploads/<{$_SESSION['user']['img_200']}>" class="headimg center">
            </a>
            </empty>
            </div>
            <div id="name" class="head_msg"><{$_SESSION['user']['name']}></div>

            <div id="ps_introduce" class="head_msg ">

           <a><{:empty($_SESSION['user']['self_intro'])? '添加一句话介绍':$_SESSION['user']['self_intro']}></a>
            <!-- <a>添加一句话介绍</a> -->

            <!-- <a><{$_SESSION['user']['self_intro']}></a> -->


            </div>

            <div class="center" id="ps_edit">
                 <input type="text" class="center" name="self_intro" id="oneword">
            </div>
            <div  class="row  center" id="btn">
                <div id="save" class="btn-left"><a class="left">保存</a></div>
                <div class="btn-right" id="cancel"><a>取消</a></div>
            </div>

        </div>
        <!-- 用户头像 end -->

        <!-- 用户基本数据 -->
        <div  class="col-md-8">
            <div class=" user_data">
                <div class="col-md-1"></div>
                <div class="col-md-4 ">
                    <li>公司: <span><{$_SESSION['user']['company']}></span></li>
                    <li>职业: <span><{$_SESSION['user']['job']}></span></li>
                    <li>邮箱: <span><{$_SESSION['user']['email']}></span></li>
                </div>
                <div class="col-md-1"></div>

                <div class="col-md-6 mt20">
                    <li>微博: <span>未填写</span></li>
                    <li>微信: <span>未填写</span></li>
                </div>
            </div>

            <div class="btn_box">
            <div class="fl ml20  center">
                <a class="more">更多<span class="glyphicon glyphicon-triangle-bottom"> </span></a> 
            </div>
            

            <a class="btn btn-info fr" href="<{:U('User/edit')}>">修改基础资料</a>

            </div>
        </div>
        <!-- 用户基本信息结束 -->
    </div>
    <!-- 用户消息 end -->
        <div class="clear"></div>
        <!-- 下拉模块 start -->
        <div id="pull_down" class="border-1 center">
            <div class="p-l"></div>
            <div class="p-r">
                <li>年级: <span class="glyphicon glyphicon-align-justify "></span> 0</li>
                <li>经验值:<span>5</span></li>
                <li>嗅豆:<span><{$_SESSION['user']['score']}>枚</span></li>

            </div>
        </div>
        <!-- 下拉模块 end -->

    <!-- 用户消息信息  start-->
    <div class="row">
        <div class="user_menu center">

            <div id="user_menu" name="user_menu"></div>
            <div class="user-menu-warp">
                <div class="menu-warp">
                    <ul>
                        <li class=""><a href="<{:U('User/index')}>">
                                我的消息</a>
                        </li>
                                            <li class="active">
                                <a href="<{:U('Myarticle/article')}>">我的文章</a></li>
                                        <li class=""><a href="<{:U('Mycomment/comment')}>">我的评论</a></li>
                        <li class=""><a href="<{:U('Mycollect/collect')}>">我的收藏</a></li>
                        <!-- <li class=""><a href="<{:U('Myattention/attention')}>">我的关注</a></li>
                        <li class=""><a href="<{:U('Myorder/order')}>">我的订单</a></li> -->
                                    </ul>
                </div>

                
        <div class="user-content-warp">

                    <ul class="nav-box">
                        <li class=""><a href="<{:U('Myarticle/article')}>">已发布（<{$article_count}>）</a></li>
                        <li class="active"><a href="<{:U('Myarticle/verify_article')}>">审核中（<{$verify_article_count}>）</a></li>
                        <li class=""><a href="<{:U('Myarticle/killed_article')}>">未通过（<{$killed_article_count}>）</a></li>
                        <li class=""><a href="<{:U('Myarticle/draft_article')}>">草稿箱（<{$draft_article_count}>）</a></li>
                    </ul>


                <div class="no-content-prompt">
                                    <!-- 您还没有文章 -->
                                    <empty name="verify_article">
                                        <div style="font-size:20px; margin-top:10px; margin-left:10px;">
                                        您还没有文章!
                                        </div>
                                    </empty>
                                    <volist name="verify_article" id="v">
                                        <!-- 文章 -->
                                        <div class="mod-b mod-art " data-aid="158303">
                                            <a class="transition" href="<{:U('Article/index',array('aid'=>$v['id']))}>" target="_blank">
                                                <div class="mod-thumb">
                                                    <img style="width:220px;height:135px"class="lazy" data-original="__ROOT__/Uploads/<{$v['cover']}>" alt="" src="__ROOT__/Uploads/<{$v['cover']}>" style="display: inline;">
                                                </div>
                                            </a>
                                            <div class="mob-ctt">
                                                <h3><a href="<{:U('Article/index',array('aid'=>$v['id']))}>" class="transition" target="_blank"><{$v['title']}></a></h3>


                                                <div class="mob-author"><span class="time">
                                <?php
                                $time = time()-$v['time'];
                                if ($time < 60) {
                                    echo '刚刚';
                                } elseif ($time < 3600) {
                                   echo date('i',$time).'分钟前'; 
                                } elseif ($time <86400){
                                    echo date('h',$time).'小时前';
                                } elseif ($time <604800) {
                                    echo date('d',$time).'天前';
                                } else {
                                    echo date('Y-m-d h:i:s',$time);
                                }
                                
                             ?>

                                                </span></div>
                                                <!-- <div class="mob-sub">但没想到，它俩有一个共同的合作伙伴......</div> -->
                                            </div>
                                        </div>
                                    </volist>
                                    

                                </div>
                                <div class="pagination">
                                    <ul>
                                        <li>
                                　　<{$page}>
                                        </li>
                                    </ul>
                                </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 用户消息信息 end -->
</div>
</block>
<block name="footer">

<!-- <div style="width:200px;height:5px; clear:both; margin-top:1000px;" ></div> -->
<script>
    var url="<{:U('User/doAjax')}>";
</script>
<script src="__ROOT__/public/js/jquery.min.js"></script>
<script src="__ROOT__/public/myjs/ps.js"></script>

</block>

<!-- 用户信息end -->

